package com.leo.blog.dto;

import java.util.List;

import com.leo.blog.entity.BlackIp;
import com.leo.blog.enums.BlackIpStateEnum;

public class BlackIpExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//黑名单数量
	private int count;
	//操作(增删改的时候使用)
	private BlackIp blackIp;
	//黑名单列表(查询列表的时候使用)
	private List<BlackIp> blackIpList;
	
	private Long allCount;
			
	//构造函数
	public BlackIpExecution() {
				
	}
			
	//操作失败的时候使用的构造器
	public BlackIpExecution(BlackIpStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
			
	//操作成功的时候使用的构造器
	public BlackIpExecution(BlackIpStateEnum stateEnum, BlackIp blackIp) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.blackIp = blackIp;
	}
			
	//操作成功的时候使用的构造器
	public BlackIpExecution(BlackIpStateEnum stateEnum, List<BlackIp> blackIpList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.blackIpList = blackIpList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public BlackIp getBlackIp() {
		return blackIp;
	}

	public void setBlackIp(BlackIp blackIp) {
		this.blackIp = blackIp;
	}

	public List<BlackIp> getBlackIpList() {
		return blackIpList;
	}

	public void setBlackIpList(List<BlackIp> blackIpList) {
		this.blackIpList = blackIpList;
	}

	public Long getAllCount() {
		return allCount;
	}

	public void setAllCount(Long allCount) {
		this.allCount = allCount;
	}
	
	
}
